package com.lxm.oauth2server.controller;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices;
import org.springframework.security.oauth2.provider.token.ConsumerTokenServices;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.security.Principal;

/**
 * @ClassName: CustomerUserController
 * @Description: TODO
 * @author: liangxingming
 * @date: 2020年05月13日 10:46
 */
@Controller
public class FormLoginController {

    @RequestMapping("/login")
    public String login(){
        return "login";
    }

    @RequestMapping("/holle")
    public String holle(){
        return "holle";
    }
}
